/**
 * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 *
 * For the applicable distribution terms see the license.txt -file, included in
 * the distribution.
 */

#ifndef PURCHASABLEITEM_H
#define PURCHASABLEITEM_H

#include "purchasableitembase.h"

/*!
  \class PurchasableItem
  \brief Implementation of the base abstract class PurchasableItemBase
*/
class PurchasableItem : public PurchasableItemBase
{
    Q_OBJECT
public:
    /*!
      Constructor
    */
    explicit PurchasableItem(DeclarativePurchaseListModel &model,
                             const QString &productID,
                             const QString &productUrl);

protected:
    /*!
      base class abstract methods implementation
    */
    void setUnlocked(QString *purchaseTicket);
    bool isPurchased();
};

#endif // PURCHASABLEITEM_H
